package cn.larry.config.register;

import org.springframework.beans.PropertyEditorRegistrar;
import org.springframework.beans.PropertyEditorRegistry;

import cn.larry.demo.domain.Zoo;
import cn.larry.demo.propertyeditor.ZooEditor;

/**
 * @author LarryZeal
 *
 */
public class MyPropertyEditorRegistrar_1 implements PropertyEditorRegistrar {

	@Override
	public void registerCustomEditors(PropertyEditorRegistry registry) {
		registry.registerCustomEditor(Zoo.class, new ZooEditor());
	}

}
